<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>系统参数</title>
    {template 'stourtravel/public/public_min_js'}
    {php echo Common::getCss('style.css,base.css,jqtransform.css,base_new.css'); }
    {php echo Common::getScript('config.js,jquery.jqtransform.js,jquery.colorpicker.js');}
    {php echo Common::getScript("uploadify/jquery.uploadify.min.js"); }
    {php echo Common::getCss('uploadify.css','js/uploadify/'); }
</head>
<body top_right=HbRX4t >
{php Common::getEditor('jseditor','',$sysconfig['cfg_admin_htmleditor_width'],300,'Sline','','print',true);}
	<table class="content-tab">
        <tr>
            <td width="119px" class="content-lt-td"  valign="top">
                {template 'stourtravel/public/leftnav'}
                <!--右侧内容区-->
            </td>
            <td valign="top" class="content-rt-td">
                <form id="configfrm">
                    <div class="w-set-con">
                    	
                        <div class="cfg-header-bar">
                            <a href="javascript:;" class="fr btn btn-primary radius mt-6 mr-10" onclick="window.location.reload()">刷新</a>
                        </div>
                        
                        <div class="w-set-nr">
                            <div class="info-item-block">

                                <li class="rowElem">
                                    <span class="item-hd">CSS/JS压缩{Common::get_help_icon('cfg_compress_open')}：</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_compress_open" value="1" {if $config['cfg_compress_open']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_compress_open" value="0" {if $config['cfg_compress_open']==0}checked{/if}>关闭</label>
                                        <span class="item-text va-t c-999 ml-20">*开启：打包合并压缩CSS/JS文件，减少加载次数；关闭：独立调取每个文件，加载一个调取一次</span>
                                    </div>
                                </li>
                                <li class="rowElem">
                                    <span class="item-hd">服务端缓存{Common::get_help_icon('cfg_cache_open')}：</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_cache_open" value="1" {if $config['cfg_cache_open']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_cache_open" value="0" {if $config['cfg_cache_open']==0}checked{/if}>关闭</label>
                                        <span class="item-text va-t c-999 ml-20">*开启：服务端将缓存访问数据，定期自动更新；关闭：服务端不缓存访问数据，每次从服务器获取最新数据</span>
                                    </div>
                                </li>
                                <li class="rowElem">
                                    <span class="item-hd">登录下单{Common::get_help_icon('cfg_login_order')}：</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_login_order" value="1" {if $config['cfg_login_order']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_login_order" value="0" {if $config['cfg_login_order']==0}checked{/if}>关闭</label>
                                        <span class="item-text va-t c-999 ml-20">*开启：只能登录后才能下订单；关闭：不登录即可下订单，后台会默认将联系人手机注册成为会员，并通知该手机号码。</span>
                                    </div>
                                </li>
                                <li class="rowElem">
                                    <span class="item-hd">后台常用菜单{Common::get_help_icon('cfg_quick_menu')}：</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio"  name="cfg_quick_menu" value="1" {if $config['cfg_quick_menu']=='1'}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio"  name="cfg_quick_menu" value="0" {if empty($config['cfg_quick_menu'])}checked{/if}>关闭</label>
                                        <span class="item-text va-t c-999 ml-20">*开启：后台首页显示快捷菜单模块；关闭：后台首页不显示快捷菜单模块</span>

                                    </div>
                                </li>

                                <li class="rowElem">
                                    <span class="item-hd">uniapp端问答开关</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio"  name="cfg_question_is_show" value="1" {if $config['cfg_question_is_show']=='1'}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio"  name="cfg_question_is_show" value="0" {if empty($config['cfg_question_is_show'])}checked{/if}>关闭</label>
                                        <span class="item-text va-t c-999 ml-20">*控制uniapp端个人心中“我的咨询”及产品详情页问答模块，用于过审</span>

                                    </div>
                                </li>

                                <li class="rowElem">
                                    <span class="item-hd">自动完成规则：</span>
                                    <div class="item-bd">
                                        <!-- <label class="radio-label"><input type="radio"  name="cfg_quick_menu" value="1" {if $config['cfg_quick_menu']=='1'}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio"  name="cfg_quick_menu" value="0" {if empty($config['cfg_quick_menu'])}checked{/if}>关闭</label> -->
                                        <span class="lh-30 ml-10">订单使用日期超出
                                        <input type="number" name="cfg_order_auto_finish_time" class="input-text w50" value="{$config['cfg_order_auto_finish_time']}">天后</span>
                                        <span class="item-text va-t c-999 ml-20">只运行填写正整数,表示订单超出"有效期+时间限制后"订单自动完成</span>
                                    </div>
                                </li>

                                <li class="rowElem">
                                    <span class="item-hd">强制登录{Common::get_help_icon('cfg_force_login')}：</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_force_login" value="1" {if $config['cfg_force_login']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_force_login" value="0" {if $config['cfg_force_login']==0}checked{/if}>关闭</label>
                                        <span class="item-text va-t c-999 ml-20">*开启时，用户未登录访问wap或PC端任何页面时，强制跳转至会员登录页面；关闭时和登录时，不控制正常显示。默认关闭</span>
                                    </div>
                                </li>

                                <li class="rowElem">
                                    <span class="item-hd">满意度</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_satisfy" value="1" {if $config['cfg_satisfy']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_satisfy" value="0" {if $config['cfg_satisfy']==0}checked{/if}>关闭</label>
                                        <span class="item-text va-t c-999 ml-20">控制全站满意度显示隐藏</span>
                                    </div>

                                </li>

                                <li class="rowElem">
                                    <span class="item-hd">小程序提审</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_weixin_personal_info" value="1" {if $config['cfg_weixin_personal_info']==1}checked{/if}>显示</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_weixin_personal_info" value="0" {if $config['cfg_weixin_personal_info']==0}checked{/if}>隐藏</label>
                                        <span class="item-text va-t c-999 ml-20">显示隐藏敏感数据，用于小程序过审</span>
                                    </div>
                                </li>

<!--                                <li class="rowElem">-->
<!--                                    <span class="item-hd">个人中心游记入口</span>-->
<!--                                    <div class="item-bd">-->
<!--                                        <label class="radio-label"><input type="radio" name="cfg_weixin_personal_note_lock" value="1" {if $config['cfg_weixin_personal_note_lock']==1}checked{/if}>开启</label>-->
<!--                                        <label class="radio-label ml-20"><input type="radio" name="cfg_weixin_personal_note_lock" value="0" {if $config['cfg_weixin_personal_note_lock']==0}checked{/if}>关闭</label>-->
<!--                                        <span class="item-text va-t c-999 ml-20">控制个人中心游记模块显示隐藏，用于过审</span>-->
<!--                                    </div>-->
<!--                                </li>-->

                                {if (St_Functions::is_normal_app_install('system_line'))}
                                <li class="rowElem">
                                    <span class="item-hd">线路评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_line_lock" value="1" {if $config['cfg_comment_line_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_line_lock" value="0" {if $config['cfg_comment_line_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_hotel'))}
                                <li class="rowElem">
                                    <span class="item-hd">酒店评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_hotel_lock" value="1" {if $config['cfg_comment_hotel_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_hotel_lock" value="0" {if $config['cfg_comment_hotel_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_car'))}
                                <li class="rowElem">
                                    <span class="item-hd">租车评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_car_lock" value="1" {if $config['cfg_comment_car_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_car_lock" value="0" {if $config['cfg_comment_car_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_combination'))}
                                <li class="rowElem">
                                    <span class="item-hd">组合评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_combination_lock" value="1" {if $config['cfg_comment_combination_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_combination_lock" value="0" {if $config['cfg_comment_combination_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_article'))}
                                <li class="rowElem">
                                    <span class="item-hd">攻略评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_article_lock" value="1" {if $config['cfg_comment_article_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_article_lock" value="0" {if $config['cfg_comment_article_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_news'))}
                                <li class="rowElem">
                                    <span class="item-hd">资讯评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_news_lock" value="1" {if $config['cfg_comment_news_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_news_lock" value="0" {if $config['cfg_comment_news_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_spot'))}
                                <li class="rowElem">
                                    <span class="item-hd">景点评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_spot_lock" value="1" {if $config['cfg_comment_spot_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_spot_lock" value="0" {if $config['cfg_comment_spot_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_photo'))}
                                <li class="rowElem">
                                    <span class="item-hd">相册评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_photo_lock" value="1" {if $config['cfg_comment_photo_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_photo_lock" value="0" {if $config['cfg_comment_photo_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_jieban'))}
                                <li class="rowElem">
                                    <span class="item-hd">结伴评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_jieban_lock" value="1" {if $config['cfg_comment_jieban_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_jieban_lock" value="0" {if $config['cfg_comment_jieban_lock_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_tuan'))}
                                <li class="rowElem">
                                    <span class="item-hd">团购评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_tuan_lock" value="1" {if $config['cfg_comment_tuan_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_tuan_lock" value="0" {if $config['cfg_comment_tuan_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_malls'))}
                                <li class="rowElem">
                                    <span class="item-hd">商城评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_malls_lock" value="1" {if $config['cfg_comment_malls_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_malls_lock" value="0" {if $config['cfg_comment_malls_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_notes'))}
                                <li class="rowElem">
                                    <span class="item-hd">游记评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_notes_lock" value="1" {if $config['cfg_comment_notes_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_notes_lock" value="0" {if $config['cfg_comment_notes_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}


                                {if (St_Functions::is_normal_app_install('system_ship_line'))}
                                <li class="rowElem">
                                    <span class="item-hd">邮轮评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_ship_line_lock" value="1" {if $config['cfg_comment_ship_line_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_ship_line_lock" value="0" {if $config['cfg_comment_ship_line_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_guide'))}
                                <li class="rowElem">
                                    <span class="item-hd">导游评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_guide_lock" value="1" {if $config['cfg_comment_guide_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_guide_lock" value="0" {if $config['cfg_comment_guide_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_outdoor'))}
                                <li class="rowElem">
                                    <span class="item-hd">户外评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_outdoor_lock" value="1" {if $config['cfg_comment_outdoor_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_outdoor_lock" value="0" {if $config['cfg_comment_outdoor_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_visa'))}
                                <li class="rowElem">
                                    <span class="item-hd">签证评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_visa_lock" value="1" {if $config['cfg_comment_visa_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_visa_lock" value="0" {if $config['cfg_comment_visa_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}


                                {if (St_Functions::is_normal_app_install('system_techan'))}
                                <li class="rowElem">
                                    <span class="item-hd">特产评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_techan_lock" value="1" {if $config['cfg_comment_techan_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_techan_lock" value="0" {if $config['cfg_comment_techan_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}

                                {if (St_Functions::is_normal_app_install('system_food'))}
                                <li class="rowElem">
                                    <span class="item-hd">美食评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_food_lock" value="1" {if $config['cfg_comment_food_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_food_lock" value="0" {if $config['cfg_comment_food_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>
                                {/if}


                                <li class="rowElem">
                                    <span class="item-hd">扩展应用评论</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" name="cfg_comment_tongyong_lock" value="1" {if $config['cfg_comment_tongyong_lock']==1}checked{/if}>开启</label>
                                        <label class="radio-label ml-20"><input type="radio" name="cfg_comment_tongyong_lock" value="0" {if $config['cfg_comment_tongyong_lock']==0}checked{/if}>关闭</label>
                                    </div>
                                </li>


                                <li class="rowElem">
                                    <span class="item-hd">服务协议</span>
                                    <div class="item-bd">
                                        <textarea id="cfg_wxxcx_fuwu" name="cfg_wxxcx_fuwu">{$config['cfg_wxxcx_fuwu']}</textarea>
                                    </div>
                                </li>

                                <li class="rowElem">
                                    <span class="item-hd">个人信息保护指引</span>
                                    <div class="item-bd">
                                        <textarea id="cfg_wxxcx_xinxi" name="cfg_wxxcx_xinxi">{$config['cfg_wxxcx_xinxi']}</textarea>
                                    </div>
                                </li>

                                <li class="rowElem">
                                    <span class="item-hd">企业微信机器人{Common::get_help_icon('cfg_qywx_bot')}</span>
                                    <div class="item-bd">
                                        <input type="text" name="cfg_qywx_admin_url"  class="input-text w700"  value="{$config['cfg_qywx_admin_url']}" />
                                    </div>
                                </li>
                            </div>
                            <div class="clear clearfix">
                                <a class="btn btn-primary radius size-L ml-115" href="javascript:;" id="btn_save">保存</a>
                                <input type="hidden" name="webid" id="webid" value="0">
                            </div>
                        </div>
                    </div>
                </form>
            </td>
        </tr>
  </table>

  
  
	<script>

	$(document).ready(function(){

        window.content=window.JSEDITOR('cfg_wxxcx_fuwu');
        window.content=window.JSEDITOR('cfg_wxxcx_xinxi');

        //配置信息保存
        $("#btn_save").click(function(){
            if( $("input[name='cfg_order_auto_finish_time']").val()<1){
                ST.Util.showMsg('有效期必须是大于零的整数',5,1000);
                return false;
            }
            //var webid= $("#webid").val();
            Config.saveConfig(0);


        });



    })












    </script>

</body>
</html>
